
import VueRouter from 'vue-router'
import Vue from 'vue'
import addRouter from './addRouter.js'
// 使用VueRouter
Vue.use(VueRouter)
const routes = [
    //  {
    //       path: '/home',
    //      meta: { title: '首页' },
    //      component: () => import('@/views/home.vue')
    //  }
 ]

const router = new VueRouter({
        mode: 'history',
        base: '/',
        routes:[]
})
console.log(addRouter())
      router.addRoute(addRouter())
// router.beforeEach((to, from, next) => {

//     next()
// })
 export default router